Make _gdk_window_process_updates_recurse reentrancy safe
authorAlexander Larsson <alexl@redhat.com>
Thu, 13 Aug 2009 15:00:00 +0000 (17:00 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 13 Aug 2009 15:00:00 +0000 (17:00 +0200)
commit9f822431970b9744f0184ae2d9e9977f607ffe4e
tree936f5b788dc8460ec183ed6cc44200707bd9872e
parent7667c4d8dc1c1fb558942609a0daa277e35fc7e4
Make _gdk_window_process_updates_recurse reentrancy safe

Apps may change the window hierarchy while recursing over it by
destroying windows from the expose event handler. We need to copy
the children list and ref all the children while recursing.

This fixes some crashers in gedit (bug #589367, bug #591434)
gdk/gdkwindow.c